package per.zzzfwd.query;

public class Field implements Expression, Renderable {

    private final String name;

    public Field(String name) {
        if (name == null) {
            throw new RuntimeException("field name is not allowed to be null.");
        }

        this.name = name;
    }

    public String name() {
        return name;
    }

    @Override
    public String render() {
        return name;
    }
}
